<?php
/**
 * @package scuttle
 * @file /admin/index.php
 **/

require_once "../../../mainfile.php";
require_once XOOPS_MODULE_PATH. '/scuttle/admin/menu.php' ;
require XOOPS_MODULE_PATH.'/scuttle/class/ActionFrame.class.php';

$root =& XCube_Root::getSingleton();
$root->mController->executeHeader();
$actionName = isset($_GET['action']) ? trim($_GET['action']) : "index";   

$moduleRunner =& new Scuttle_ActionFrame(true);
$moduleRunner->setActionName($actionName);

$root->mController->mExecute->add(array(&$moduleRunner, 'execute'));
$root->mController->execute();

$xoopsLogger=&$root->mController->getLogger();
$xoopsLogger->stopTime();

$root->mController->executeView();
?>